home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / PPP Interfaces 1.2 / PPP Libraries / source / ppp.interface.h < prev   
Encoding:
Text File  |  1995-09-23  |  1.1 KB  |  42 lines  |  [TEXT/CWIE]

  1. // Interface routines for MacPPP
  2. // © 1994-95 Richard Buckle <richardb@cocytus.demon.co.uk>
  3.  
  4. // Release 1.2 for CodeWarrior 7
  5.  
  6. // Many thanks to Steve Dagley for helping me make this code
  7. // OT-compliant. If you use this, please credit him in your readmes.
  8.  
  9. // IMPORTANT: the libraries contain a string literal.
  10. // If building a 68K code resource, you MUST set up A4.
  11. // You should also assume that all these calls can move memory.
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. // Return TRUE if PPP is installed
  18. Boolean PPPisInstalled( void );
  19.  
  20. // Return TRUE if PPP is installed and open
  21. Boolean PPPisOpen( void );
  22.  
  23. // Open PPP if it's installed
  24. void OpenPPP( void );
  25.  
  26. // Hard close PPP if it's installed
  27. // (hard close is usually preferable)
  28. void ClosePPPHard( void );
  29.  
  30. // Soft close PPP if it's installed
  31. // This allows PPP to redial without the user's permission
  32. // If you use it, explain this in your documentation or
  33. // you'll get lots of bug reports :-)
  34. void ClosePPPSoft( void );
  35.  
  36. // Return TRUE if the machine is using Open Transport rather than MacTCP.
  37. Boolean UsingOpenTransport( void );
  38.  
  39. #ifdef __cplusplus
  40. }
  41. #endif
  42.